//Background
BGfloor1=("\script\Images\3DBackground\Stage 6\Floor1.png");
BGceiling1=("\script\Images\3DBackground\Stage 6\Ceiling1.png");
BGwall1a=("\script\Images\3DBackground\Stage 6\Wall1a.png");
BGwall1b=("\script\Images\3DBackground\Stage 6\Wall1b.png");
BGwall2a=("\script\Images\3DBackground\Stage 6\Wall2a.png");
BGwall2b=("\script\Images\3DBackground\Stage 6\Wall2b.png");
BGdoor=("\script\Images\3DBackground\Stage 6\Door.png");
BGmoon=("\script\Images\3DBackground\Stage 6\Moon.png");
BGtree=("\script\Images\3DBackground\Stage 2\Tree.png");

BGfloor2=("\script\Images\3DBackground\Stage 6\Floor2.png");
BGceiling2=("\script\Images\3DBackground\Stage 6\Ceiling2.png");
BGbeams1=("\script\Images\3DBackground\Stage 6\Beams1.png");
BGdebris=("\script\Images\3DBackground\Stage 6\Debris.png");

BGfloor3=("\script\Images\3DBackground\Stage 6\Floor3.png");
BGceiling3a=("\script\Images\3DBackground\Stage 6\Ceiling3a.png");
BGceiling3b=("\script\Images\3DBackground\Stage 6\Ceiling3b.png");
BGbeams2=("\script\Images\3DBackground\Stage 6\Beams2.png");
BGwindow=("\script\Images\3DBackground\Stage 6\Window.png");
BGeclipse=("\script\Images\3DBackground\Stage 6\Eclipse.png");

BGend=("\script\Images\3DBackground\Wall.png");

//Deleting Old Stage 5 Arrays
	while(length(bush)>0){ bush=erase(bush,0); }
	while(length(bushscroll)>0){ bushscroll=erase(bushscroll,0); }
	
	while(length(canopy)>0){ canopy=erase(canopy,0); }	
	while(length(canopyscroll)>0){ canopyscroll=erase(canopyscroll,0); }
	while(length(canopygraphic)>0){ canopygraphic=erase(canopygraphic,0); }

	while(length(bushrandomx)>0){ bushrandomx=erase(bushrandomx,0); }
	
SetCommonData("InEvent",0);
SetCommonData("BackgroundStop",0);
SetCommonData("Stage",6);

bgphase=1;
hscroll=0; vscroll=0; scroll=800;
scrollon=1; scrollspeed=1;

oldscore=GetScore;

newviewx=0; newviewy=0; viewmovetimexy=5;
newviewh=0; newviewv=0; viewmovetimehv=5;
basev=160;

time=0; frame=0;
phase=0; stagephase=1;

CreateEnemyFromFile("script\Functions\fadein.txt",0,0,0,0,0);